//
//  TextFieldBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/16.
//

import SwiftUI

struct TextFieldBoot: View {
    
    @State var textFtext: String = ""
    
    var body: some View {
        NavigationView(content: {
            VStack {
                TextField("Type something....", text: $textFtext)
        //            .textFieldStyle(RoundedBorderTextFieldStyle())
                    .padding()
                    .background(
                        RoundedRectangle(cornerRadius: 10)
                            .fill(.gray.opacity(0.3))
                    )
                    .foregroundColor(.red)
                    .font(.headline)
                
                Button(action: {}, label: {
                    Text("save".uppercased())
                        .padding()
                })
             Spacer()
            }
        })
        .navigationTitle("textfiled boot")
    }
}

#Preview {
    TextFieldBoot()
}
